/*
 * Copyright (c) 2018 maoyan.com
 * All rights reserved.
 *
 */
package com.darren.euc.service;

import com.darren.euc.entity.Notice;
import com.darren.euc.entity.PageBean;
import net.sf.json.JSONObject;

import java.util.List;

/**
 * 在这里编写类的功能描述
 *
 * @author fangwenhao
 * @created 2018/3/11
 */
public interface NoticeService {

    PageBean queryForPageNoticeHQL(JSONObject data, Integer pageSize, int currentPage);

    PageBean queryForPageNoticeHQLReleasing(List<Long> spaceIds,Integer pageSize, int currentPage);

    Notice findById(Long id);

    Notice update(Notice notice);

    Notice editById(JSONObject data);

    Notice deleteById(Long id);

    List<Notice> findByStatusIn(List<Integer> statusList);

    List<Notice> findNewTop2(Long spaceId);

    PageBean<Notice> findNotice(List<Long> spaceIds,Integer ps, Integer pn);

}
